#include "IRenderable.h"
#include "ImageManager.h"


Renderer *IRenderable::pRenderer = Renderer::getInstance();


void IRenderable::Render() const
{
	m_pGeometry->Render(m_Transform);
}

void IRenderable::setTexture( IDirect3DTexture9 *val )
{
	m_pGeometry = ImageManager::getInstance()->CreateGeometryFromTexture(val);
}
